package com.store.mapper.lt;

import com.store.entity.Resource;
import com.store.entity.Role;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ResourceMapper extends Mapper<Resource> {

    List<Resource> queryResourcesByRole(Role role);

    //int addResources(List<Resource> resourcesAdd);

    List<Resource> queryResourcesByRoleId(int roleId);
}
